package com.ruoyi.applet.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.brisk.common.annotation.Excel;
import com.brisk.common.core.domain.BaseEntity;
import lombok.*;

import java.math.BigDecimal;
import java.util.Date;

/**
 * examUser对象 applet_exam_user
 *
 * @author PengFei Deng
 * @date 2022-04-14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class AppletExamUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long joinId;

    /**
     * 用户手机号码
     */
    @Excel(name = "用户手机号码")
    private String userPhone;

    /**
     * 答题Id
     */
    @Excel(name = "答题Id")
    private Long examId;

    /**
     * 用户答案
     */
    @Excel(name = "用户答案")
    private String userAnswer;

    /**
     * 参加时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "参加时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date joinTime;

    /**
     * 正确题数
     */
    @Excel(name = "正确题数")
    private String userTrueSum;

    /**
     * 用户正确率
     */
    @Excel(name = "用户正确率")
    private BigDecimal userAccuracy;

    private String accuracyType;


    private String examName;


    private Long userId;

    private String userImg;
    private String teamName;
    private String userName;
    private String userNickname;
}
